<template>
  <div>
    <div class="wrap">
      <div class="g-wrap">
        <Header></Header>
      </div>
      <router-view :num="profile.follows"></router-view>
    </div>
  </div>
</template>

<script>
import Header from "@/views/UserDetail/Header";
export default {
  name: "index",
  components:{
    Header
  },
  data() {
    return {
      profile: {},
    }
  },
  methods:{
    async getSingerDetail() {
      let result = await this.$API.reqUserDetail(this.$route.query.id)
      this.profile = result.data.profile
    },
  },
  mounted() {
    this.getSingerDetail()
  }
}
</script>

<style scoped lang="less">
.wrap {
  width: 980px;
  min-height: 700px;
  margin: 0 auto;
  background-color: #fff;
  padding-bottom: 40px;
  border: 1px solid #d3d3d3;
  border-width: 0 1px;
  .g-wrap {
    padding: 40px;
    height: auto;
    overflow: hidden;
  }
}
</style>